-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Add service provider factory support #18907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Components/Blazor/Blazor/src/Hosting/WebAssemblyHostBuilder.cs
Outdated
Show resolved
Hide resolved
214c536
to
4fa54fa
Compare
When we can expect a release which contains this PR? Thanks in advance. |
Next preview - probably about a month. We don't provide specific dates until it's ready. |
@rynowak What happens when you have multiple Configure calls? Do I need to re-register the IServiceProviderFactory<T>? |
Yes, but I'm not sure why you'd do that? |
Same reason you call configure services from multiple places though it’s less apparent that it’s useful here. The scenario would be another part of the application trying to call configure without overriding the factory |
I'm not sure we're talking about the same thing - I might have answered you wrongly. This is the equivalent of Are you saying that people abstract away multiple calls to |
I'm saying a reason to separate the registration of the factory itself and things that can configure the container is exactly that scenario. Less about abstracting the call to ConfigureContainer and more about calling it from different places in an application. |
src/Components/Blazor/Blazor/src/Hosting/WebAssemblyHostBuilder.cs
Outdated
Show resolved
Hide resolved
src/Components/Blazor/Blazor/src/Hosting/WebAssemblyHostBuilder.cs
Outdated
Show resolved
Hide resolved
Let's take this offline, I feel I'm having trouble understanding your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Let's close on the method name though.
@rynowak Are we in a position to have unit tests for this too? |
No @davidfowl and I are still arguing 😆 - it has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with whatever you and @davidfowl agree for this.
Fixes: #18814 This adds back support on the Blazor WASM Host for using ISerivceProviderFactory<>. We previously had this support when the Blazor WASM host was a clone of generic host, but I accidentally lost it when simplifying the host (sorry :( ).
4fa54fa
to
b1f3416
Compare
Fixes: #18814
This is an attempt to add back support on the Blazor WASM Host for using
ISerivceProviderFactory<>.
We previously had this support when the Blazor WASM host was a clone of
generic host, but I accidentally lost it when simplifying the host
(sorry :( ).
Summary of the changes (Less than 80 chars)
Addresses #bugnumber (in this specific format)